using Avalonia.Controls;
using Avalonia.ReactiveUI;
using ReactiveUI;
using System;
using AvalSqlIndexManager.ViewModels;

namespace AvalSqlIndexManager.Views
{
    public partial class IndexEditWindow : ReactiveWindow<IndexEditViewModel>
    {
        public IndexEditWindow()
        {
            InitializeComponent();
            this.WhenActivated(action => action(ViewModel!.EditCommitCommand.Subscribe(Close)));            
        }
    }
}
